import csv
from feature_data.const_data import *

def read_csv_f(file_name):
    csvFile = open( out_dir +file_name.strip() +'.csv', 'rb') #, encoding = 'utf8' , newline=''
    csv_rows = csv.reader(csvFile)
    csv_header = next(csv_rows)

    author_name_list = []
    precision_list = []
    recall_list = []
    f1_list = []

    for row in csv_rows:
        print row[1], row[2], row[3]
        author_name_list.append( row[0] )
        precision_list.append( float( row[1] ))
        recall_list.append( float( row[2] ))
        f1_list.append( float( row[3] ))
    # print author_name_list
    return  author_name_list, precision_list, recall_list, f1_list

if __name__ == '__main__':
    read_csv_f("name_disam")
